// @description 管理员账号设定
// @author 冯世玉
// @date 2018-05-16

import axios from "../index.js"

var adminAccount= {
    // 资料展示
	accountInfo:function(data,success,failure){
		return axios.post("/subAdmin/accountInfo",data,success,failure);
    },
    // 资料编辑
	accountModify:function(data,success,failure){
		return axios.postJson("/subAdmin/accountModify",data,success,failure);
    },
    // 总管理员密码修改
	chiefAdminPasswordModify:function(data,success,failure){
		return axios.post("/chiefAdminPasswordModify",data,success,failure);
    },
    // 总管理员账户信息修改
	// chiefAdminAccountModify:function(data,success,failure){
	// 	return axios.postJson("/chiefAdminAccountModify",data,success,failure);
    // },
    //管理员修改头像
	adminAccountModify:function(data,success,failure){
		return axios.post("/admin/uploadPicture",data,success,failure);
    },
    // 账号名称修改
	chiefAdminNameModify:function(data,success,failure){
		return axios.post("/chiefAdminNameModify",data,success,failure);
    },
    // 邮箱修改
	chiefAdminEmailModify:function(data,success,failure){
		return axios.post("/chiefAdminEmailModify",data,success,failure);
    },
    
}

export default adminAccount